package com.lcq.gulimall.product.vo;

import com.lcq.gulimall.product.entity.AttrEntity;
import com.mysql.cj.util.StringUtils;
import org.springframework.beans.BeanUtils;

public class AttrVoUtils {
    public static void convert(AttrEntity entity, AttrVo attrVo){
        BeanUtils.copyProperties(entity,attrVo);
    }

    public static void convert(AttrEntity entity, AttrRespVo attrVo){
        BeanUtils.copyProperties(entity,attrVo);
//        String select = attrVo.getValueSelect();
//        if(!StringUtils.isNullOrEmpty(select)){
//            attrVo.setValueType(select.contains(";")?1:0);
//        }
    }
}
